<div class="view">
    <div class="left leftright">
        <h2><?php
        echo $data->title; ?></h2>
    </div>
    <div class="right leftright body">
        <div class="blog_header">
            <div class="left" id="cearte_time">
            <?php echo Tool::ago($data->create_time); ?>
            </div>
            <div class="artist_name">
                <?php if($data->categoryName != null): ?>
                <h2>
            <?php echo CHtml::link($data->categoryName,Yii::app()->createUrl('/blogCategory/view',array('id'=>$data->category))); ?>
                </h2>
                <?php endif; ?>
            </div>
            <div class="clear"></div>
        </div>
        <div class="blog_body">
        <?php 
        if($data->thumbnail != null){
            $thumb_array = explode(",", $data->thumbnail);
            foreach($thumb_array as $value){
                echo CHtml::image(Yii::app()->baseUrl.'/'.$value,$data->title,array('class'=>'blog_thumbnail'))."<br/>";
            }
        }
        echo '<div class="blog_text">';
        echo nl2br(Tool::character_limiter(Tool::delete_htm($data->discription), 500));
        echo '</div>';
        ?>
        </div>
        <?php echo '<h3 class="read_more">'.CHtml::link('Read More',Yii::app()->createUrl('/blog/view',array('id'=>$data->id))).'</h3>'; ?>
    </div>
    <div class="clear"></div>
</div>